<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictDeviceModelList" checkbox="true" fitColumns="true" title="开放耗材管理管理" actionUrl="labOpenMaterialController.do?materialDatagrid&deviceId=${deviceId}" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="机床编号"  field="device.machineNo"  queryMode="single"  width="120"></t:dgCol>
    <t:dgCol title="机床名称"  field="device.machineName"    queryMode="single"  width="120"></t:dgCol>
    <t:dgCol title="耗材名称"  field="material.name"     query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="labOpenMaterialController.do?doDel&id={id}" />
   <t:dgToolBar title="录入" icon="icon-add" url="labOpenMaterialController.do?goAdd&deviceId=${deviceId }" funname="add" height="150" width="490"></t:dgToolBar>
  </t:datagrid>
  </div>
</div>
